package com.wty.cmims.service;

import com.alipay.api.AlipayApiException;
import com.wty.cmims.pojo.AliPay;
import com.wty.cmims.pojo.ResponseResult;
import org.springframework.validation.annotation.Validated;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;

public interface AliPayService {
    void pay(@Validated AliPay aliPay, HttpServletResponse httpResponse);
    String payNotify(HttpServletRequest request);
    ResponseResult<Map<String,Object>> refund(String tradeNo);
}